import service from '../request'

// 获取标绘
export function getPlot() {
  return service({
    url: '/Draw/ImageTargetPoint/geojson',
    method: 'get',
  })
}

// 新增标绘
export function postAddPlot(params) {
  return service({
    url: '/Draw/ImageTargetPoint',
    method: 'post',
    data: params,
  })
}

export function putPlot(params) {
  return service({
    url: `/Draw/ImageTargetPoint/${params.KeyValue}`,
    method: 'put',
    data: params,
  })
}
